﻿using System.Web.Mvc;
using AgileDesign.Utilities;
using StatusPage.DataAccess;

namespace StatusPage.Controllers
{
    public class HomeController 
        : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Status of Environment Referenced in Configuration";
            ViewBag.Title = "Status Page";

            return View(new EnvironmentInfo(new ConfigurationObjectImplExample()) {ControllerUser = User.Identity.Name});
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
